package com.example.server.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 用户关系(CustomerRole)实体类
 *
 * @author china.fuyao@outlook.com
 * @since 2020-04-19 14:24:43
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CustomerRole extends Model<CustomerRole> {
    /**
     * 主键id
     */
    @TableId(value="customer_role_id",type=IdType.AUTO)
    private Integer customerRoleId;
    /**
    * 用户id
    */
    private Integer customerId;
    /**
    * 角色id
    */
    private Integer roleId;
    /**
     * 角色类型
     */
    private Integer roleType;
}